package com.talkingdata.hadoop.guard.bean;

public class FolderState {
    private int id ;                    // 编号
    private String serviceId;           // 集群namespace 名称
    private String nameDir;             // 目录名称
    private Long fileCount;             // 文件数量
    private Long length;                // 单副本大小
    private Long spaceConsumed;         // 集群空间大小
    private Long createTime;            // 数据创建时间
    private String timestamp;           // 时间戳

    public FolderState() {
    }

    @Override
    public String toString() {
        return "FolderState{" +
                "serviceId='" + serviceId + '\'' +
                ", nameDir='" + nameDir + '\'' +
                ", fileCount=" + fileCount +
                ", length=" + length +
                ", spaceConsumed=" + spaceConsumed +
                ", createTime=" + createTime +
                ", timestamp='" + timestamp + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getNameDir() {
        return nameDir;
    }

    public void setNameDir(String nameDir) {
        this.nameDir = nameDir;
    }

    public Long getFileCount() {
        return fileCount;
    }

    public void setFileCount(Long fileCount) {
        this.fileCount = fileCount;
    }

    public Long getLength() {
        return length;
    }

    public void setLength(Long length) {
        this.length = length;
    }

    public Long getSpaceConsumed() {
        return spaceConsumed;
    }

    public void setSpaceConsumed(Long spaceConsumed) {
        this.spaceConsumed = spaceConsumed;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public FolderState(String serviceId, String nameDir, Long fileCount, Long length, Long spaceConsumed, Long createTime, String timestamp) {
        this.serviceId = serviceId;
        this.nameDir = nameDir;
        this.fileCount = fileCount;
        this.length = length;
        this.spaceConsumed = spaceConsumed;
        this.createTime = createTime;
        this.timestamp = timestamp;
    }
}
